package com.fantasy9.gameserver.message;


import org.apache.log4j.Logger;

import com.fantasy9.gameserver.clientpackets.TestText;

public class ClientMessageRecognizer {

	private static Logger logger = Logger.getLogger("server_log");
	
	private static ClientMessageRecognizer _inst = null;
	
	public static ClientMessageRecognizer getInstance(){
		if(_inst == null){
			_inst = new ClientMessageRecognizer();
		} 
		return _inst;
	}
	
	private ClientMessageRecognizer(){
		
	}
	
	public BaseClientMessage getClientMessage(int msgId){
		
		BaseClientMessage newMsg = null;
		
		switch(msgId){
		case MessageType.C2S_TEST_TEXT:
			newMsg = new TestText();
			break;
		}
		
		return newMsg;
		
	}
}
